﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/jui.Master" Inherits="System.Web.Mvc.ViewPage<string>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    系统菜单配置
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div  id="layout" class="noNavTab">
 <div id="navTab">
<div class="pageContent">
<% 
    int updateId = Utils.StrToInt(ViewData["uId"], 0);
    Dictionary<string, object> d = null;
    if (updateId != 0)
        d = (Dictionary<string, object>)ViewData["UpdateDt"];   
    int id = Utils.StrToInt(ViewData["id"], 0);
    string oper = "Add";
    if (updateId != 0)
        oper = "Edit";
    int td = MyRequest.GetQueryInt("d", 1);
    string tname = MyRequest.GetQueryString("tname");
    using (Html.BeginForm(oper, "OperateTotal", new { dtnum = (td - 1), id = updateId, name = DencryptHelper.Encrypt(tname), url = "/sys/MenuConfig/" + id + "/?tname=" + tname + "&d=" + td }, FormMethod.Post, new { @class = "pageForm required-validate", onsubmit = "return validateCallback(this,navTabAjaxDone)" }))   
{ %>
新建节点:<%:Html.TextBox("t0_title", updateId != 0 ? d["title"] : "", new {@class = "required" })%> 排序：<%:Html.TextBox("t0_order", updateId != 0 ? d["order"] : ViewData["Order"], new { @readonly="readonly"})%><br/>
扩展属性:<br/><%:Html.TextArea("t0_summary", updateId != 0 ? d["summary"].ToString() : "", new { cols = 56, rows = 2 })%><br/>
<button type="submit">保存节点</button>
<%=Html.Hidden("t0_parid",  updateId != 0 ? d["parid"]:id)%>
<%}%>
<br/><br/>

<%:Html.CheckBox("isMore", (bool)ViewData["more"])%>
<%=ViewData["Open"]%>
<ul class="treelist">
<%=ViewData["listDt"]%>
</ul>
</div>

</div>
</div>


<%--<div id="calendar"></div>
<script language="javascript" type="text/javascript">
    var par0 = "0"; //单双月显示
    var par1 = ""; //显示某月，默认当月
    var par2 = "0"; //线路id
    $(function () {
        showGroupCalendar(par0, par1, par2);
    })
</script>
<script type="text/javascript" src="/Scripts/calendar.js"></script>--%>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
<link href="/content/jui-normal.css" rel="stylesheet" type="text/css" />
</asp:Content>
